<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            background-image: url(../avstar.png);
            border: 1px cyan solid;
            padding: 10px;
        }
    </style>
</head>

<body>
    <form style="background-color: cyan;">
        <input type="text">
    </form>
    <div>
        f
    </div>
</body>
<script>
    let form = document.getElementsByTagName("form");

    let style = window.getComputedStyle(form, null);
    console.log(style);

</script>

</html>